# docker image for eureka-server
# version 1.0.0
# author Calvin
# 代表基础环境
FROM java:8
# 代表映射文件夹
VOLUME /tmp
# 将文件复制到镜像
ADD consumer-admin.jar consumer-admin.jar
# 映射出来的端口
EXPOSE 9009
# 脚本
RUN bash -c 'touch consumer-admin.jar'
# 启动命令
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/consumer-admin.jar"]